import request from '@/utils/request'

// 查询股票基础数据列表
export function listStockBase(query) {
  return request({
    url: '/bussiness/stockBase/list',
    method: 'get',
    params: query
  })
}

// 查询股票基础数据详细
export function getStockBase(id) {
  return request({
    url: '/bussiness/stockBase/' + id,
    method: 'get'
  })
}

// 新增股票基础数据
export function addStockBase(data) {
  return request({
    url: '/bussiness/stockBase',
    method: 'post',
    data: data
  })
}

// 修改股票基础数据
export function updateStockBase(data) {
  return request({
    url: '/bussiness/stockBase',
    method: 'put',
    data: data
  })
}

// 删除股票基础数据
export function delStockBase(id) {
  return request({
    url: '/bussiness/stockBase/' + id,
    method: 'delete'
  })
}
